/**
 * 
 */
package net.microlinktech.testing.bean;

import gnu.io.CommPortIdentifier;

/**
 * @author zhangqing
 *
 */
public class PortOption {
	private String name;
	private CommPortIdentifier portId;

	public PortOption(CommPortIdentifier portId) {
		this.name = portId.getName();
		this.portId = portId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CommPortIdentifier getPortId() {
		return portId;
	}

	public void setPortId(CommPortIdentifier portId) {
		this.portId = portId;
	}

	@Override
	public String toString() {
		return name;
	}

}